"""
Project Name : api_automation_framework
File Name : cookies-set.py
Author : lldhsds
Date : 2024/12/29 11:32
Description: /cookies/set, Sets cookie(s) as provided by the query string and redirects to cookie list.
"""

import requests

def cookies_set() -> None:
    url = 'https://httpbin.org/cookies/set'
    headers = {'Accept': 'text/plain'}
    data = {'freeform': 'abc123'}
    response = requests.get(url, headers=headers, params=data)
    print(response.status_code)
    print(response.json())
    print(response.headers)

cookies_set()
